package lab01;

public class Test13 {
    public static void main(String[] args) {
        int hundrends;
        int tens;
        int units;
        int i;

        for(i=100;i<1000;i++){
            hundrends=i/100%10;
            tens=i/10%10;
            units=i%10;

            if (i==hundrends*hundrends*hundrends+tens*tens*tens+units*units*units){
                System.out.println("i="+i+"是水仙花数");
            }
        }
    }
}
